#ifndef BILLBOARD_SAMPLE_H
#define BILLBOARD_SAMPLE_H
#include "SampleBase.h"
#include "glslprogram.h"
#include <glm\glm.hpp>
namespace ShaderLab {
	class BillBoardSample : public SampleBase {
	public:
		BillBoardSample();
		~BillBoardSample();

		void Init();
		void Update(float time);
		void Render();
		void Imgui();
		void ShutDown();
	private:
		void CreateShader();
	private:
		GLSLProgram prog;
		GLuint sprites,texHandle;
		int numSprites;
		float *locations;
		glm::mat4 model, view, projection;
		float spriteSize;
	};
}
#endif // !TEMPLATE_SAMPLE_H

